package com.by.sbdemoby.controller;

import com.by.sbdemoby.pojo.Card;
import com.by.sbdemoby.service.CardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @auth wzy
 * @date 2023/12/12 11:46
 */
@RestController
@RequestMapping("/card")
public class CardController {

    @Autowired
    private CardService cardService;

    @GetMapping("/list")
    public List<Card> list(){
        return cardService.list();
    }
}
